package hb.software.department.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.department.domain.Department;
import hb.software.department.service.DepartmentManager;
import hb.software.web.spring.controller.GenericController;

/**
 * @ClassName: DepartmentController
 * @Description: Controller of Department Module
 * @author LiDongYuan
 * @date May 29, 2020 9:53:04 AM
 * 
 */
@Controller
@RequestMapping("/department")
public class DepartmentController extends GenericController<Department, Long, DepartmentManager> {

	DepartmentManager departmentManager;

	@Autowired
	public void setDepartmentManager(DepartmentManager departmentManager) {
		this.departmentManager = departmentManager;
		this.manager = this.departmentManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/department/index";
		return result;
	}

}